<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
</head>

<script type="text/javascript">
	function tt() {
		myFrame1.test1();
		alert(myFrame1.document.getElementById("sp").value);
	}
</script>


<body>
	<input type="button" onclick="tt();">
	<iframe id="myFrame1" src="child1.html" name="myFrame1"></iframe>
	<iframe id="myFrame2" src="child2.html"></iframe>
</body>
</html>
</html>